
package devbureau.fstore.common;

public class OrderLineImpl implements OrderLine {

    protected Integer itemId = null;
    protected Integer quantity = null;
    protected Double price = null;

    public OrderLineImpl() {
    }

    public OrderLineImpl(Integer itemId ,Integer quantity,Double priceRUR) {
        this.itemId = itemId;
        this.quantity = quantity;
        this.price = priceRUR;
    }

    public Integer getItemId() {
        return itemId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public Double getPrice() {
        return price;
    }

    
    @Override
    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("itemId:"+itemId);
        buffer.append(";quantity:"+quantity);
        buffer.append(";price:"+price);
        return buffer.toString();
    }

}
